From: Colin Walters Date: Mon, 23 Feb 2015 18:02:37 +0000 (-0500) Subject: tests: Move test gpg keyring into writable tmpdir X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~907 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2f205331f4316a1068a02ba01e9c9322c374c6b0;p=ostree.git tests: Move test gpg keyring into writable tmpdir At least the version of gpgme in RHEL7 wants to create a lock file, work around this by copying it into the writable test temporary directory. --- diff --git a/tests/libtest.sh b/tests/libtest.sh index 5abbedf2..905c8cb8 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -23,8 +23,13 @@ test_tmpdir=$(pwd) export G_DEBUG=fatal-warnings export TEST_GPG_KEYID="472CDAFA" -export TEST_GPG_KEYHOME=${SRCDIR}/gpghome -export OSTREE_GPG_HOME=${TEST_GPG_KEYHOME}/trusted + +# GPG when creating signatures demands a writable +# homedir in order to create lockfiles. Work around +# this by copying locally. +cp -a ${SRCDIR}/gpghome ${test_tmpdir} +export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome +export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted if test -n "${OT_TESTS_DEBUG}"; then set -x